
public class Test0914 {
    public static void main(String[] args) {
        Circle c = new Circle();
        c.radius = 3;
        System.out.println(c.calcArea());

        Rectangle r = new Rectangle();
        r.height = 6;
        r.width = 5;
        System.out.println(r.calcArea());

        Cat a = new Cat();
        a.name = "猫";
        a.color = "黄色";
        a.getname();
        a.getcolor();

        Point x = new Point();
        x.setX(5);
        x.setY(5);
        x.setZ(5);
        x.distance();

//宠物子类父类继承  方法重写 测试主类


    }
}